﻿#ifndef QLOGIN_H
#define QLOGIN_H
#pragma once
#include <QDialog>
#include <map>


namespace Ui {
class Qlogin;
}

//此文件为登陆窗口的.h文件
class Qlogin : public QDialog
{
    Q_OBJECT

public:
    explicit Qlogin(bool management,QWidget *parent = nullptr);
    ~Qlogin();
    void init_dialog();
protected:
    void Init_Skin();
    void Init_Control();
    void Init_SConnect();

private slots:
    void on_Button_login_clicked();

    void on_Buttonchangepassword_clicked();

    void on_Button_cancel_clicked();

    void on_lineEdit_account_textChanged(const QString &arg1);

    void on_Button_Accountmanagement_clicked();


protected:
    void fun_readUserInfo();

    void mousePressEvent(QMouseEvent *event);

    void mouseMoveEvent(QMouseEvent *event);
private:
    Ui::Qlogin *ui;
    QPoint dragPosition;//用来保存偏移值
    bool isadmin = false;

};

#endif // QLOGIN_H
